class CreateTramitacoes < ActiveRecord::Migration

  def self.up
    create_table :tramitacoes do |t|
      t.integer  :pleito_id, :null => false
      t.string   :status, :null => false
      t.integer  :user_id
      t.text     :complemento1, :complemento2, :complemento3

      t.timestamps
    end
    add_index :tramitacoes, :pleito_id
    add_index :tramitacoes, :user_id
  end

  def self.down
    drop_table :tramitacoes
  end

end
